LassoScript Utility
Basics Browse Detail

[String->Reverse]

Tag Link [String->Reverse] Category String
Type Member Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

[String->Reverse] modifies the base string in-place by reversing the order of all characters within the string.

Syntax

[Variable: 'myString' = 'String Value']
[$myString->(Reverse)]
[Variable: 'myString']

<?LassoScript
Variable: 'myString' = 'String Value';
$myString->(Reverse)]
Output: $myString;
?>

Parameters

No Parameters Required.

Examples

To reverse all the characters in a string:

Use the [String->Reverse] tag. The following example reverse a string so that it prints out backwards.

[Variable: 'myString' = 'A quick brown fox']
[$myString->(Reverse)]
[Output: $myString]

xof nworb kciuq A

Related Tags

Category Tags